package com.kanshu.ksgb.fastread.doudou.module.download.service;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.kanshu.ksgb.fastread.doudou.app.constants.ARouterConfig;
import com.kanshu.ksgb.fastread.doudou.common.business.routerservice.ActivateService;

/**
 * downloadbookservice代理类
 * 作者    wcy
 * 时间    2018/12/4 10:40
 * 文件    doudou
 * 描述
 */
@Route(path = ARouterConfig.DOWNLOAD_BOOK_SERVICE)
public class ActivateServiceImpl implements ActivateService {
    private Context mContext;

    @Override
    public void activateService() {
        DownloadBookService.actionStart(mContext);
    }

    @Override
    public void clearQueue() {
        DownloadBookService.clearAll();
    }

    @Override
    public void init(Context context) {
        mContext = context;
    }
}
